package ws.jdbc.concurrent.driver.sqlserver.cursor.shared

import static java.sql.ResultSet.*
import ws.jdbc.concurrent.driver.sqlserver.*

/**
 * Test case of CursorScrollableUpdatable class methods.
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
class CursorScrollableUpdatableTest extends ws.jdbc.concurrent.driver.sqlserver.cursor.CursorScrollableUpdatableTest {

  /**
   * Run this before every test.
   */
  @Override
  void setUp() {
    super.setUp()

    stmt = con.createStatement(TYPE_SCROLL_SENSITIVE, CONCUR_UPDATABLE)
    stmt.setFetchSize(0)
    stmt.executeQuery(sqlQuery)
    rs = stmt.getCursor()

    assertNotNull rs
    assertTrue rs instanceof CursorScrollableUpdatable
  }
}